package org.crazyit.cloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.util.Scanner;

/**
 * @Author JLL
 * @Date 2019/2/7/0007 下午 10:03
 */

@SpringBootApplication
@EnableEurekaClient
public class ProviderApp {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //读取控制台的端口输入
        String port = scanner.nextLine();
        new SpringApplicationBuilder(ProviderApp.class).properties("server.port="+port).run(args);

    }
}
